.class public Lcom/melesta/payment/inapp3/InAppResponse;
.super Ljava/lang/Object;
.source "InAppResponse.java"

# interfaces
.implements Lcom/melesta/payment/interfaces/IResponse;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/melesta/payment/inapp3/InAppResponse$1;,
        Lcom/melesta/payment/inapp3/InAppResponse$Status;
    }
.end annotation


# instance fields
.field private countPerItem:I

.field private errorCode:I

.field private internalId:J

.field private listener:Lcom/melesta/payment/interfaces/IListener;

.field private name:Ljava/lang/String;

.field private sku:Ljava/lang/String;

.field private status:Lcom/melesta/payment/inapp3/InAppResponse$Status;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 6
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 8
    return-void
.end method


# virtual methods
.method public getCountPerItem()I
    .locals 1

    .prologue
    .line 24
    iget v0, p0, Lcom/melesta/payment/inapp3/InAppResponse;->countPerItem:I

    return v0
.end method

.method public getErrorCode()I
    .locals 1

    .prologue
    .line 51
    iget v0, p0, Lcom/melesta/payment/inapp3/InAppResponse;->errorCode:I

    return v0
.end method

.method public getInternalId()J
    .locals 2

    .prologue
    .line 92
    iget-wide v0, p0, Lcom/melesta/payment/inapp3/InAppResponse;->internalId:J

    return-wide v0
.end method

.method public getName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 33
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppResponse;->name:Ljava/lang/String;

    return-object v0
.end method

.method public getSku()Ljava/lang/String;
    .locals 1

    .prologue
    .line 42
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppResponse;->sku:Ljava/lang/String;

    return-object v0
.end method

.method public getStatus()Lcom/melesta/payment/inapp3/InAppResponse$Status;
    .locals 1

    .prologue
    .line 60
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppResponse;->status:Lcom/melesta/payment/inapp3/InAppResponse$Status;

    return-object v0
.end method

.method public run()V
    .locals 5

    .prologue
    .line 70
    sget-object v0, Lcom/melesta/payment/inapp3/InAppResponse$1;->$SwitchMap$com$melesta$payment$inapp3$InAppResponse$Status:[I

    iget-object v1, p0, Lcom/melesta/payment/inapp3/InAppResponse;->status:Lcom/melesta/payment/inapp3/InAppResponse$Status;

    invoke-virtual {v1}, Lcom/melesta/payment/inapp3/InAppResponse$Status;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_0

    .line 82
    :goto_0
    return-void

    .line 72
    :pswitch_0
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppResponse;->listener:Lcom/melesta/payment/interfaces/IListener;

    iget-object v1, p0, Lcom/melesta/payment/inapp3/InAppResponse;->name:Ljava/lang/String;

    iget v2, p0, Lcom/melesta/payment/inapp3/InAppResponse;->countPerItem:I

    iget-wide v3, p0, Lcom/melesta/payment/inapp3/InAppResponse;->internalId:J

    invoke-interface {v0, v1, v2, v3, v4}, Lcom/melesta/payment/interfaces/IListener;->onPurchase(Ljava/lang/String;IJ)V

    goto :goto_0

    .line 75
    :pswitch_1
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppResponse;->listener:Lcom/melesta/payment/interfaces/IListener;

    iget-object v1, p0, Lcom/melesta/payment/inapp3/InAppResponse;->name:Ljava/lang/String;

    invoke-interface {v0, v1}, Lcom/melesta/payment/interfaces/IListener;->onCancel(Ljava/lang/String;)V

    goto :goto_0

    .line 78
    :pswitch_2
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppResponse;->listener:Lcom/melesta/payment/interfaces/IListener;

    iget-object v1, p0, Lcom/melesta/payment/inapp3/InAppResponse;->name:Ljava/lang/String;

    iget v2, p0, Lcom/melesta/payment/inapp3/InAppResponse;->errorCode:I

    const/4 v3, 0x0

    invoke-interface {v0, v1, v2, v3}, Lcom/melesta/payment/interfaces/IListener;->onError(Ljava/lang/String;ILjava/lang/String;)V

    goto :goto_0

    .line 70
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method public setCountPerItem(I)Lcom/melesta/payment/inapp3/InAppResponse;
    .locals 0
    .parameter "countPerItem"

    .prologue
    .line 28
    iput p1, p0, Lcom/melesta/payment/inapp3/InAppResponse;->countPerItem:I

    .line 29
    return-object p0
.end method

.method public setErrorCode(I)Lcom/melesta/payment/inapp3/InAppResponse;
    .locals 0
    .parameter "errorCode"

    .prologue
    .line 55
    iput p1, p0, Lcom/melesta/payment/inapp3/InAppResponse;->errorCode:I

    .line 56
    return-object p0
.end method

.method public setInternalId(J)V
    .locals 0
    .parameter "id"

    .prologue
    .line 97
    iput-wide p1, p0, Lcom/melesta/payment/inapp3/InAppResponse;->internalId:J

    .line 98
    return-void
.end method

.method public setListener(Lcom/melesta/payment/interfaces/IListener;)Lcom/melesta/payment/inapp3/InAppResponse;
    .locals 0
    .parameter "listener"

    .prologue
    .line 86
    iput-object p1, p0, Lcom/melesta/payment/inapp3/InAppResponse;->listener:Lcom/melesta/payment/interfaces/IListener;

    .line 87
    return-object p0
.end method

.method public bridge synthetic setListener(Lcom/melesta/payment/interfaces/IListener;)Lcom/melesta/payment/interfaces/IResponse;
    .locals 1
    .parameter "x0"

    .prologue
    .line 6
    invoke-virtual {p0, p1}, Lcom/melesta/payment/inapp3/InAppResponse;->setListener(Lcom/melesta/payment/interfaces/IListener;)Lcom/melesta/payment/inapp3/InAppResponse;

    move-result-object v0

    return-object v0
.end method

.method public setName(Ljava/lang/String;)Lcom/melesta/payment/inapp3/InAppResponse;
    .locals 0
    .parameter "name"

    .prologue
    .line 37
    iput-object p1, p0, Lcom/melesta/payment/inapp3/InAppResponse;->name:Ljava/lang/String;

    .line 38
    return-object p0
.end method

.method public setSku(Ljava/lang/String;)Lcom/melesta/payment/inapp3/InAppResponse;
    .locals 0
    .parameter "sku"

    .prologue
    .line 46
    iput-object p1, p0, Lcom/melesta/payment/inapp3/InAppResponse;->sku:Ljava/lang/String;

    .line 47
    return-object p0
.end method

.method public setStatus(Lcom/melesta/payment/inapp3/InAppResponse$Status;)Lcom/melesta/payment/inapp3/InAppResponse;
    .locals 0
    .parameter "status"

    .prologue
    .line 64
    iput-object p1, p0, Lcom/melesta/payment/inapp3/InAppResponse;->status:Lcom/melesta/payment/inapp3/InAppResponse$Status;

    .line 65
    return-object p0
.end method
